package com.system.main.impl;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import com.system.entity.IFile;
import com.system.main.MySystem;

public abstract class AbstraceMySystem implements MySystem {
	
	
	public List<IFile> listFiles(String path) {
		List<IFile> list = new ArrayList<IFile>();
		File file = new File(path);
		if (file.isFile() || file.listFiles() == null) {
			return list;
		}
		for (File f : file.listFiles()) {
			IFile ifile = new IFile(f);
			list.add(ifile);
		}
		return list;
	}
}
